/**
 * Created by tanbingqin on 2018/11/12.
 */
import config from 'config'
import httpFetch from 'share/httpFetch'

export default {

  //根据审批节点oid批量查节点名称
  getApproveNodeName(params) {
    return httpFetch.post(`${config.baseUrl}/brms/api/rule/approval/batch/node/name`, params)
  },

  //审批通过
  handleLoanApprovePass(params) {
    return httpFetch.post(`${config.baseUrl}/api/approvals/pass`, params)
  },

  //审批驳回
  handleLoanApproveReject(params) {
    return httpFetch.post(`${config.baseUrl}/api/approvals/reject`, params)
  },

  getUserAvatar(userOID){
    return httpFetch.get(`${config.baseUrl}/api/users/oids?page=0&size=1&userOIDs=${userOID}`)
  }
}
